//
//  IWProfileViewController.m
//
//
//  Created by apple on 15-8-17.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import "TTProfileViewController.h"
#import "TTPopMenuView.h"

@interface TTProfileViewController ()

@end

@implementation TTProfileViewController



- (void)viewDidLoad
{
    [super viewDidLoad];

    // 1.添加右边的按钮
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"设置" style:UIBarButtonItemStylePlain target:self action:@selector(settting:)];
}

- (void)settting:(UIBarButtonItem *)item
{

    // 切换控制器
    UIViewController *vc = [[UIViewController alloc] init];
    vc.view.backgroundColor  = [UIColor greenColor];
    vc.navigationItem.title = @"我-新控制器";

    [self.navigationController pushViewController:vc animated:YES];
    
}

@end
